package com.youlu.campus.entity;

import com.youlu.campus.base.base.EntityBase;
import com.youlu.campus.entity.enums.TaskBizType;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * 用户活动奖励表
 */
@Getter
@Setter
@Document("user_activity_reward")
public class UserActivityReward extends EntityBase {
    @Indexed
    private String activityId;

    private String taskId;
    /**
     * 证书类型:INVITE:志愿者证书,QA:荣誉证书
     */
    @Indexed
    private TaskBizType taskBizType;

    private String caInfoId;
    @Indexed
    private String userId;
    /**
     * 获得时间   rewardReceived
     */
    private Date receivedTime;
    /**
     * 姓名
     */
    protected String name;
    /**
     * 邮箱
     */
    protected String email;
    /**
     * 手机号
     */
    protected String mobile;
    /**
     * 邮政编码
     */
    protected String postcode;

    /**
     * 省
     */
    protected String province;

    /**
     * 市
     */
    protected String city;
    /**
     * 区
     */
    protected String area;
    /**
     * 地址
     */
    protected String address;
    /**
     * 是否领取
     */
    protected Boolean rewardReceived = Boolean.FALSE;
    /**
     * 订单号
     */
    protected String orderNo;
    /**
     * 赠品商品编号
     */
    protected String giftItemCode;
    /**
     * 证书分组,例如优秀志愿者证书等
     */
    protected String caGroupName;
}
